From: Colin Walters Date: Sun, 27 Apr 2014 20:31:50 +0000 (-0400) Subject: show: Fix segfault if we can't find an object X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~1212 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=021c4ee9d35ee36b267df352a5d0f86a9943c7d0;p=ostree.git show: Fix segfault if we can't find an object We need to use the original rev here. --- diff --git a/src/ostree/ot-builtin-show.c b/src/ostree/ot-builtin-show.c index de54535a..9f4568e9 100644 --- a/src/ostree/ot-builtin-show.c +++ b/src/ostree/ot-builtin-show.c @@ -269,7 +269,7 @@ ostree_builtin_show (int argc, char **argv, OstreeRepo *repo, GCancellable *canc gs_unref_variant GVariant *xattrs = NULL; GFileType filetype; - if (!ostree_repo_load_file (repo, resolved_rev, NULL, &finfo, &xattrs, + if (!ostree_repo_load_file (repo, rev, NULL, &finfo, &xattrs, cancellable, error)) goto out;